package com.tyut.homework.pojo;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "finance_handle")
public class FinanceHandle implements Serializable {

    @Id
    private Integer aptId;
    private String log;
    private String handler;
    private Double income;
    private Double outcome;
    private Date updateTime;

    @Override
    public String toString() {
        return "FinanceHandle{" +
                "aptId=" + aptId +
                ", log='" + log + '\'' +
                ", handler='" + handler + '\'' +
                ", income=" + income +
                ", outcome=" + outcome +
                ", updateTime=" + updateTime +
                '}';
    }

    public Integer getAptId() {
        return aptId;
    }

    public void setAptId(Integer aptId) {
        this.aptId = aptId;
    }

    public String getLog() {
        return log;
    }

    public void setLog(String log) {
        this.log = log;
    }

    public String getHandler() {
        return handler;
    }

    public void setHandler(String handler) {
        this.handler = handler;
    }

    public Double getIncome() {
        return income;
    }

    public void setIncome(Double income) {
        this.income = income;
    }

    public Double getOutcome() {
        return outcome;
    }

    public void setOutcome(Double outcome) {
        this.outcome = outcome;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
